import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import "animate.css";
import '@/rem/rem' //响应式
// import ElementPlus from 'element-plus'
// import 'element-plus/dist/index.css'
// import zhCn from 'element-plus/es/locale/lang/zh-cn'
import * as icons from '@element-plus/icons-vue'
const app = createApp(App)
Object.keys(icons).forEach(key => {
    app.component(key, icons[key])
})

/**
 * @param 路由前置守卫
 */
// router.beforeEach((to, from) => {
//     console.log(to)
//     console.log(from)
//     // 返回true / false 用来标识导航能否顺利进行
//     return true
// })
// app.use(ElementPlus, {
//     locale: zhCn
// })

createApp(App).use(store).use(router).mount('#app')
